@import "@/theme/index.less";

.scenic-passenger-flow {
  .number-scroll {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin-bottom: 16rem;

    &-item {
      text-align: left;
    }

    &-title {
      font-size: 22rem;
      margin-bottom: 4rem;
    }

    &-unit {
      font-size: 16rem;
      color: rgba(255, 255, 255, 0.6);
      position: relative;
      top: -4rem;
    }

    .avg-saturation {
      position: relative;
      top: -10rem;
      display: inline-block;
      vertical-align: middle;
      border-radius: 14rem;
      padding: 2rem 8rem;
      color: rgba(255, 255, 255, 0.8);
      background-color: rgba(255, 255, 255, 0.1);
      border: 1rem solid rgba(255, 255, 255, 0.4);
      font-size: 12rem;
      margin-left: 20rem;
    }
  }

  .scenic-list {
    padding: 10rem 10rem 10rem 0;

    .scenic-item {
      display: flex;
      justify-content: space-between;
      padding: 10rem 0 10rem 10rem;
      border-bottom: 2rem dotted #999;
      cursor: pointer;

      .scenic-item-no {
        width: 50rem;
        color: @primary;
        font-size: 14rem;
        margin-right: 10rem;
        flex-shrink: 0;
      }

      .scenic-item-comfort {
        margin-left: 16rem;
        color: #6dd400;
        display: inline-block;
        width: 32rem;
        text-align: center;
      }

      .scenic-item-content {
        margin-right: 10rem;
        flex-grow: 1;
        width: 1rem;

        .scenic-item-name {
          color: #fff;
          white-space: nowrap;
          overflow: hidden;
          text-overflow: ellipsis;
        }

        .scenic-item-bar {
          width: 100%;
          height: 4rem;
          background-color: rgba(255, 255, 255, 0.1);
          margin-top: 10rem;

          & > div {
            height: 100%;
            background-color: @primary;
          }
        }
      }

      .scenic-item-count {
        width: 100rem;
        text-align: right;

        .scenic-item-saturation {
          color: @primary;
        }
      }

      .scenic-item-unit {
        color: #aaa;
      }
    }
  }

  .resource-page-wrappper {
    text-align: center;
  }
}

.scenic-center-wrapper {
  text-align: center;
  margin-bottom: 36rem;

  .title {
    text-align: left;
    font-size: 18rem;
    margin-bottom: 3rem;
  }

  .scenic-center-group {
    display: flex;
    position: relative;
  }

  .scenic-center-item {
    display: flex;
    vertical-align: top;
    width: 120rem;
    height: 60rem;
    text-align: center;
    border-radius: 10rem;
    margin-right: 21rem;
    border-width: 1rem;
    border-style: solid;
    -webkit-backdrop-filter: blur(8rem);
    backdrop-filter: blur(8rem);
    background: rgba(0, 0, 0, .2);

    .scenic-center-title {
      font-size: 14rem;
    }

    .scenic-center-count {
      font-size: 40rem;
      font-family: 'number-2';
      line-height: 60rem;
    }

    .scenic-center-icon {
      height: 30rem;
      background-position: center center;
      background-repeat: no-repeat;
    }

    &:last-child {
      margin-right: 0;
    }

    &.type-red {
      background: rgba(255, 0, 0, .05);
      color: rgba(255, 0, 0, 1);
      border-color: rgba(255, 0, 0, 1);
      box-shadow: 0 0 5rem rgb(255, 0, 0, 1);

      .scenic-center-icon {
        background-size: 21.5rem 18rem;
      }
    }

    &.type-orange {
      background: rgba(255, 143, 0, .05);
      color: rgba(255, 143, 0, 1);
      border-color: rgba(255, 143, 0, 1);
      box-shadow: 0 0 5rem rgba(255, 143, 0, 1);

      .scenic-center-icon {
        background-size: 25.3333rem 24rem;
      }
    }

    &.type-yellow {
      background: rgba(255, 205, 66, .05);
      color: rgba(255, 205, 66, 1);
      border-color: rgba(255, 205, 66, 1);
      box-shadow: 0 0 5rem rgba(255, 205, 66, 1);

      .scenic-center-icon {
        background-size: 25.3333rem 24rem;
      }
    }

    &.type-green {
      background: rgba(109, 212, 0, .05);
      color: rgba(109, 212, 0, 1);
      border-color: rgba(109, 212, 0, 1);
      box-shadow: 0 0 5rem rgba(109, 212, 0, 1);

      .scenic-center-icon {
        background-size: 20rem 24rem;
      }
    }

    &.type-blue {
      box-shadow: 0 0 2rem 0 rgba(0, 145, 255, 0.4);
      border: 1rem solid rgba(0, 145, 255, 0.4);

      .scenic-center-title {
        color: rgb(0, 145, 255);
      }
    }
  }
}